package com.newcoder.service;

import com.newcoder.entity.DiscussPost;
import com.newcoder.util.ResponseWrapper;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yjh
 * @since 2024-12-04 10:03:26
 */
public interface DiscussPostService{

    ResponseWrapper insertDiscussPost(DiscussPost discussPost);

    ResponseWrapper deleteDiscussPostById(Integer id);

    ResponseWrapper updateDiscussPost(DiscussPost discussPost);
    ResponseWrapper updateCommentCount(Integer id, Integer commentCount);
    ResponseWrapper updateType(Integer id, Integer type);
    ResponseWrapper updateStatus(Integer id, Integer status);
    ResponseWrapper updateScore(Integer id, double score);

    ResponseWrapper selectDiscussPostById(Integer id);

    ResponseWrapper selectDiscussPostsPage(Integer status, Integer type, Integer currentPage, Integer pageSize);

    ResponseWrapper getDiscussPost(Integer discussPostId);

    ResponseWrapper setTop(Integer id);

    ResponseWrapper setWonderful(Integer id);
}
